<div class="hidden OptionTitle">新增客户</div>
<div class="hidden OptionBtn">保存</div>
<form role="form" method="post" action="{:U('insert')}" class="checkoutform">
  <div class="row">
    <div class="col-sm-6">
      <div class="form-group text-input">
        <input name="name" class="form-control" id="name" type="text" placeholder="姓名" datatype="*" value="{$info.name}"/>
      </div>
    </div>
    <div class="col-sm-6 icheck">
      <div style="display:inline-block;">
        <div class="radio square-red single-row">
          <input type="radio" value="1" checked name="sex">
          <label>男</label>
        </div>
      </div>
      <div style="display:inline-block;">
        <div class="radio square-red single-row">
          <input type="radio" value="0" name="sex">
          <label>女</label>
        </div>
      </div>
    </div>
  </div>
  <div class="row">
    <div class="col-sm-6">
      <div class="form-group text-input">
        <input name="tel" class="form-control" datatype="m" placeholder="电话" id="tel" type="text" value="{$info.tel}"/>
      </div>
    </div>
    <div class="col-sm-6">
      <div class="form-group text-input">
        <input class="form-control" datatype="e" id="Email" name="Email" placeholder="邮箱" type="text">
      </div>
    </div>
  </div>
  <hr>
  <div class="form-group">
    <label class="control-label">分配权限</label>
    <div>
      <volist name="role_list" id="vo">
        <?php $deep = $role_list[$key - 1]['cl']; if($deep != $vo['cl']){?>
        <br>
        <?php }?>
        <div class="icheck" style="display:inline-block;">
          <div class="square-red single-row">
            <input <?php if(in_array($vo['id'], $member_role_userids)){?>checked<?php }?> type="checkbox" name="role_id[]" value="{$vo.id}" id="is_nav_2" />
            <label>{$vo.title}</label>
          </div>
        </div>
      </volist>
    </div>
  </div>
  <hr>
  <div class="form-group">
    <label class="control-label">部门、职位</label>
    <div>
      <volist name="role_list" id="vo">
        <?php $deep = $role_list[$key - 1]['cl']; if($deep != $vo['cl']){?>
        <br>
        <?php }?>
        <div class="icheck" style="display:inline-block;">
          <div class="square-red single-row">
            <input <?php if(in_array($vo['id'], $member_role_userids)){?>checked<?php }?> type="checkbox" name="role_id[]" value="{$vo.id}" id="is_nav_2" />
            <label>{$vo.title}</label>
          </div>
        </div>
      </volist>
    </div>
  </div>
</form>
<script>
 $(function(){
    $('.square-red input').iCheck({
        checkboxClass: 'icheckbox_square-red',
        radioClass: 'iradio_square-red',
        increaseArea: '20%'
    });
});



</script>